package com.open.capacity.reimburse.dao;

import com.open.capacity.reimburse.entity.SysEmail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 邮件表
 *
 * @author
 * @email
 * @date 2021-06-25 15:47:01
 */
@Mapper
public interface SysEmailDao {

    int save(SysEmail sysEmail);

    int update(SysEmail sysEmail);

    int updateStatus(@Param("id") String id, @Param("status") Integer status);

    int updateSendStatus(@Param("id") String id, @Param("sendStatus") Integer sendStatus);

    int delete(String id);

    SysEmail findById(String id);

    List<SysEmail> findAll(Map<String, Object> params);

}
